﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Avalon.Core.Data.Templates
{
    public partial class AvalonUser : BaseAuditableEntity
    {
        public string UserName { get; set; }
        [DataType(DataType.MultilineText)]
        public byte[] Password { get; set; }
        public string Email { get; set; }
        public bool IsApproved { get; set; }
        public DateTime DateRegistered { get; set; }
        public virtual ICollection<AvalonRole> Roles { get; set; }

        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Initials { get; set; }
        public string Title { get; set; }
        [DataType(DataType.Date)]
        public DateTime? DateOfBirth { get; set; }
        public string DisplayName { get; set; }
        public string PhoneNumber { get; set; }
    }
}
